package com.example.rouroudate.util

import android.content.Context
import android.graphics.drawable.Drawable
import androidx.core.content.ContextCompat
import com.example.rouroudate.R
import com.example.rouroudate.ui.gallery.ui.StyleAnimationView

object CompatUtils {
    fun getTabIcon(type: Int): Drawable? {
        return ContextCompat.getDrawable(
            ApplicationUtils.instance, when (type) {
                StyleAnimationView.HeartType -> R.drawable.ic_style_setting_heart
                StyleAnimationView.CircleType -> R.drawable.ic_style_setting_circle
                else -> R.drawable.ic_style_setting_polygon
            }
        )
    }

    fun getString(id: Int): String {
        return ApplicationUtils.instance.getString(id)
    }
}